package com.hanserwei.springbootlearn.service.impl;

import com.hanserwei.springbootlearn.entity.Emp;
import com.hanserwei.springbootlearn.mapper.EmpMapper;
import com.hanserwei.springbootlearn.service.EmpService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    private final EmpMapper empMapper;

    public EmpServiceImpl(EmpMapper empMapper) {
        this.empMapper = empMapper;
    }

    @Override
    public List<Emp> selectAllEmps() {
        return empMapper.selectAllEmps();
    }
}
